package com.banksoft.cps.service;

import com.banksoft.cps.bean.Device;
import com.banksoft.cps.bean.query.DeviceQuery;
import com.banksoft.cps.bean.warpper.DeviceWarpper;

import java.util.List;

/**
 * Created by rongzhao.zhu on 2018/1/2.
 */
public interface DeviceService {

    List<Device> list(DeviceQuery query);

    List<DeviceWarpper> listWarpper(DeviceQuery query);

    long count(DeviceQuery query);

    void save(Device bean);

    Device findById(String id);

    void delete(String id);
}
